#ifndef _PWMMANAGER_H_
#define _PWMMANAGER_H_

#include "WPILib.h"
#include "SafePWM.h"

#define MAX_PWMS 10

class PWMManager {
	int *pwmarray;
	static PWMManager *singleton;
	static bool hasSingleton;
public:
	PWMManager();
	PWMManager* Get();
	SafePWM* GetPWM(int channel);
	void SetPWM(int channel, float value);
	void StopPWM(int channel);
	void StopAllPWM();
	
};

#endif //_PWMMANAGER_H_
